package study2;

import java.util.Scanner;

public class Tea extends HotDrink{
    Scanner scanner = new Scanner(System.in);
    @Override
    public void brew() {
        System.out.println("brew water");
    }

    @Override
    public void addCondiments() {
        System.out.println("add lemon into cup");
    }
    @Override
    public boolean isCustomerWantCondiments() {
        System.out.println("您想要加糖和牛奶嘛 如果需要输入1 不需要输入0");
        String str = scanner.nextLine();
        if (str.equals("1")){
            return true;
        }else
            return false;
    }
}
